com.epiphan.vga2usb
Class Size

Object
  extended bycom.epiphan.vga2usb.Size
All Implemented Interfaces:
Cloneable, Serializable

public final class Size
extends Object
implements Serializable, Cloneable

Image dimensions.

Since:
3.27.1
See Also:
Serialized Form

Constructor Summary
Size(int width, int height)
          Creates a Size object.
 
Method Summary
 Object clone()
          Clones this object.
 boolean equals(Object obj)
          Compares this object with another.
 int getHeight()
          Gets the height in pixels.
 int getWidth()
          Gets the width in pixels.
 int hashCode()
          Gets the hash code for this object.
 String toString()
          Returns a string representation of this object.
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Size

public Size(int width,
            int height)
Creates a Size object.

Parameters:
width - the width in pixels.
height - the height in pixels
Throws:
IllegalArgumentException - if either width or height is negative.
Method Detail

clone

public Object clone()
Clones this object.

Returns:
The clone of this object

equals

public boolean equals(Object obj)
Compares this object with another.

Parameters:
obj - the object to compare with.
Returns:
true if the objects are equal, false otherwise.

getHeight

public int getHeight()
Gets the height in pixels.

Returns:
The height in pixels.

getWidth

public int getWidth()
Gets the width in pixels.

Returns:
The width in pixels.

hashCode

public int hashCode()
Gets the hash code for this object.

Returns:
The hash code for this object.

toString

public String toString()
Returns a string representation of this object. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null.

Returns:
A string representation of this object.


Copyright © 2008-2012 Epiphan Systems Inc. All rights reserved.